package geral;

import entidade.Usuario;
import telas.Sobre;
import telasdeCadastros.CadastrarAtor;
import telasdeCadastros.CadastrarAutor;
import telasdeCadastros.CadastrarCena;
import telasdeCadastros.CadastrarFita;
import telasdeCadastros.CadastrarLogin;
import telasdeCadastros.CadastrarProducao;
import telasdeCadastros.CadastrarProdutor;
import telasdeCadastros.CadastrarTomadaCena;
import telasdeConsultas.ConsultarAtor;
import telasdeConsultas.ConsultarAutor;
import telasdeConsultas.ConsultarCena;
import telasdeConsultas.ConsultarFita;
import telasdeConsultas.ConsultarProducao;
import telasdeConsultas.ConsultarProdutor;
import telasdeConsultas.ConsultarTomadaCena;

/**
 *
 * @author 264706
 */
public class Menu extends javax.swing.JFrame {

    /** Creates new form Menu */
    public Menu() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel7 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        lblMensagem = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        MenuCadastrar = new javax.swing.JMenu();
        MenuCadastrarAtor = new javax.swing.JMenuItem();
        MenuCadastrarAutor = new javax.swing.JMenuItem();
        MenuCadastrarCena = new javax.swing.JMenuItem();
        MenuCadastrarFita = new javax.swing.JMenuItem();
        MenuCadastrarLogin = new javax.swing.JMenuItem();
        MenuCadastrarProducoes = new javax.swing.JMenuItem();
        MenuCadastrarProdutor = new javax.swing.JMenuItem();
        MenuCadastrarTomada = new javax.swing.JMenuItem();
        MenuConsultar = new javax.swing.JMenu();
        MenuConsultarAtor = new javax.swing.JMenuItem();
        MenuConsultarAutor = new javax.swing.JMenuItem();
        MenuConsultarCena = new javax.swing.JMenuItem();
        MenuConsultarFita = new javax.swing.JMenuItem();
        MenuConsultarProducao = new javax.swing.JMenuItem();
        MenuConsultarProdutor = new javax.swing.JMenuItem();
        MenuConsultarTomada = new javax.swing.JMenuItem();
        MenuAjuda = new javax.swing.JMenu();
        MenuSobre = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/telasdeAlteracoes/banner.jpg"))); // NOI18N

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 36));
        jLabel1.setText("Bem Vindo(a)");

        lblMensagem.setFont(new java.awt.Font("Tahoma", 1, 36));

        jMenuBar1.setBackground(new java.awt.Color(0, 153, 0));
        jMenuBar1.setForeground(new java.awt.Color(0, 102, 0));

        MenuCadastrar.setBackground(new java.awt.Color(51, 153, 0));
        MenuCadastrar.setText("Cadastrar");
        MenuCadastrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuCadastrarActionPerformed(evt);
            }
        });

        MenuCadastrarAtor.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
        MenuCadastrarAtor.setBackground(new java.awt.Color(153, 153, 153));
        MenuCadastrarAtor.setText("Atores");
        MenuCadastrarAtor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuCadastrarAtorActionPerformed(evt);
            }
        });
        MenuCadastrar.add(MenuCadastrarAtor);

        MenuCadastrarAutor.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MenuCadastrarAutor.setBackground(new java.awt.Color(153, 153, 153));
        MenuCadastrarAutor.setText("Autores");
        MenuCadastrarAutor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuCadastrarAutorActionPerformed(evt);
            }
        });
        MenuCadastrar.add(MenuCadastrarAutor);

        MenuCadastrarCena.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
        MenuCadastrarCena.setBackground(new java.awt.Color(153, 153, 153));
        MenuCadastrarCena.setText("Cenas");
        MenuCadastrarCena.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuCadastrarCenaActionPerformed(evt);
            }
        });
        MenuCadastrar.add(MenuCadastrarCena);

        MenuCadastrarFita.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK));
        MenuCadastrarFita.setBackground(new java.awt.Color(153, 153, 153));
        MenuCadastrarFita.setText("Fitas");
        MenuCadastrarFita.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuCadastrarFitaActionPerformed(evt);
            }
        });
        MenuCadastrar.add(MenuCadastrarFita);

        MenuCadastrarLogin.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK));
        MenuCadastrarLogin.setBackground(new java.awt.Color(153, 153, 153));
        MenuCadastrarLogin.setText("Login");
        MenuCadastrarLogin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuCadastrarLoginActionPerformed(evt);
            }
        });
        MenuCadastrar.add(MenuCadastrarLogin);

        MenuCadastrarProducoes.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK));
        MenuCadastrarProducoes.setBackground(new java.awt.Color(153, 153, 153));
        MenuCadastrarProducoes.setText("Produções");
        MenuCadastrarProducoes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuCadastrarProducoesActionPerformed(evt);
            }
        });
        MenuCadastrar.add(MenuCadastrarProducoes);

        MenuCadastrarProdutor.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MenuCadastrarProdutor.setBackground(new java.awt.Color(153, 153, 153));
        MenuCadastrarProdutor.setText("Produtores");
        MenuCadastrarProdutor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuCadastrarProdutorActionPerformed(evt);
            }
        });
        MenuCadastrar.add(MenuCadastrarProdutor);

        MenuCadastrarTomada.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));
        MenuCadastrarTomada.setBackground(new java.awt.Color(153, 153, 153));
        MenuCadastrarTomada.setText("TomadaCena");
        MenuCadastrarTomada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuCadastrarTomadaActionPerformed(evt);
            }
        });
        MenuCadastrar.add(MenuCadastrarTomada);

        jMenuBar1.add(MenuCadastrar);

        MenuConsultar.setBackground(new java.awt.Color(51, 153, 0));
        MenuConsultar.setText("Consultar");
        MenuConsultar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuConsultarActionPerformed(evt);
            }
        });

        MenuConsultarAtor.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
        MenuConsultarAtor.setBackground(new java.awt.Color(153, 153, 153));
        MenuConsultarAtor.setText("Atores");
        MenuConsultarAtor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuConsultarAtorActionPerformed(evt);
            }
        });
        MenuConsultar.add(MenuConsultarAtor);

        MenuConsultarAutor.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MenuConsultarAutor.setBackground(new java.awt.Color(153, 153, 153));
        MenuConsultarAutor.setText("Autores");
        MenuConsultarAutor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuConsultarAutorActionPerformed(evt);
            }
        });
        MenuConsultar.add(MenuConsultarAutor);

        MenuConsultarCena.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
        MenuConsultarCena.setBackground(new java.awt.Color(153, 153, 153));
        MenuConsultarCena.setText("Cenas");
        MenuConsultarCena.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuConsultarCenaActionPerformed(evt);
            }
        });
        MenuConsultar.add(MenuConsultarCena);

        MenuConsultarFita.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK));
        MenuConsultarFita.setBackground(new java.awt.Color(153, 153, 153));
        MenuConsultarFita.setText("Fitas");
        MenuConsultarFita.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuConsultarFitaActionPerformed(evt);
            }
        });
        MenuConsultar.add(MenuConsultarFita);

        MenuConsultarProducao.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.CTRL_MASK));
        MenuConsultarProducao.setBackground(new java.awt.Color(153, 153, 153));
        MenuConsultarProducao.setText("Produções");
        MenuConsultarProducao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuConsultarProducaoActionPerformed(evt);
            }
        });
        MenuConsultar.add(MenuConsultarProducao);

        MenuConsultarProdutor.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_P, java.awt.event.InputEvent.ALT_MASK | java.awt.event.InputEvent.CTRL_MASK));
        MenuConsultarProdutor.setBackground(new java.awt.Color(153, 153, 153));
        MenuConsultarProdutor.setText("Produtores");
        MenuConsultarProdutor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuConsultarProdutorActionPerformed(evt);
            }
        });
        MenuConsultar.add(MenuConsultarProdutor);

        MenuConsultarTomada.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));
        MenuConsultarTomada.setBackground(new java.awt.Color(153, 153, 153));
        MenuConsultarTomada.setText("TomadaCena");
        MenuConsultarTomada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuConsultarTomadaActionPerformed(evt);
            }
        });
        MenuConsultar.add(MenuConsultarTomada);

        jMenuBar1.add(MenuConsultar);

        MenuAjuda.setBackground(new java.awt.Color(0, 153, 0));
        MenuAjuda.setText("Ajuda");

        MenuSobre.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
        MenuSobre.setBackground(new java.awt.Color(153, 153, 153));
        MenuSobre.setText("Sobre");
        MenuSobre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MenuSobreActionPerformed(evt);
            }
        });
        MenuAjuda.add(MenuSobre);

        jMenuBar1.add(MenuAjuda);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 282, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(lblMensagem, javax.swing.GroupLayout.PREFERRED_SIZE, 282, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(16, Short.MAX_VALUE))
        );

        layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jLabel1, lblMensagem});

        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel7)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblMensagem, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(360, Short.MAX_VALUE))
        );

        layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jLabel1, lblMensagem});

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-608)/2, (screenSize.height-680)/2, 608, 680);
    }// </editor-fold>//GEN-END:initComponents

    private void MenuCadastrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuCadastrarActionPerformed

        CadastrarLogin login = new CadastrarLogin();
        login.setVisible(true);
        this.dispose();


    }//GEN-LAST:event_MenuCadastrarActionPerformed

    private void MenuCadastrarCenaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuCadastrarCenaActionPerformed

        CadastrarCena cenas = new CadastrarCena();
        cenas.setVisible(true);
        this.dispose();

    }//GEN-LAST:event_MenuCadastrarCenaActionPerformed

    private void MenuCadastrarFitaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuCadastrarFitaActionPerformed

        CadastrarFita fitas = new CadastrarFita();
        fitas.setVisible(true);
        this.dispose();

    }//GEN-LAST:event_MenuCadastrarFitaActionPerformed

    private void MenuCadastrarProducoesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuCadastrarProducoesActionPerformed

        CadastrarProducao producoes = new CadastrarProducao();
        producoes.setVisible(true);
        this.dispose();

    }//GEN-LAST:event_MenuCadastrarProducoesActionPerformed

    private void MenuCadastrarAtorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuCadastrarAtorActionPerformed

        CadastrarAtor ator = new CadastrarAtor();
        ator.setVisible(true);
        this.dispose();
    }//GEN-LAST:event_MenuCadastrarAtorActionPerformed

    private void MenuSobreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuSobreActionPerformed

        Sobre sobre = new Sobre();
        sobre.setVisible(true);
        this.dispose();

    }//GEN-LAST:event_MenuSobreActionPerformed

    private void MenuCadastrarProdutorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuCadastrarProdutorActionPerformed


        CadastrarProdutor produtor = new CadastrarProdutor();
        produtor.setVisible(true);
        this.dispose();
    }//GEN-LAST:event_MenuCadastrarProdutorActionPerformed

    private void MenuCadastrarAutorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuCadastrarAutorActionPerformed

        CadastrarAutor autor = new CadastrarAutor();
        autor.setVisible(true);
        this.dispose();

    }//GEN-LAST:event_MenuCadastrarAutorActionPerformed

    private void MenuCadastrarTomadaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuCadastrarTomadaActionPerformed


        CadastrarTomadaCena tomada = new CadastrarTomadaCena();
        tomada.setVisible(true);
        this.dispose();

    }//GEN-LAST:event_MenuCadastrarTomadaActionPerformed

    private void MenuCadastrarLoginActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuCadastrarLoginActionPerformed

        CadastrarLogin login = new CadastrarLogin();
        login.setVisible(true);
        

    }//GEN-LAST:event_MenuCadastrarLoginActionPerformed

    private void MenuConsultarAtorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuConsultarAtorActionPerformed
        ConsultarAtor ator = new ConsultarAtor();
        ator.setVisible(true);
        this.dispose();

    }//GEN-LAST:event_MenuConsultarAtorActionPerformed

    private void MenuConsultarAutorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuConsultarAutorActionPerformed
        ConsultarAutor autor = new ConsultarAutor();
        autor.setVisible(true);
        this.dispose();

    }//GEN-LAST:event_MenuConsultarAutorActionPerformed

    private void MenuConsultarCenaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuConsultarCenaActionPerformed
        ConsultarCena cena = new ConsultarCena();
        cena.setVisible(true);
        this.dispose();

    }//GEN-LAST:event_MenuConsultarCenaActionPerformed

    private void MenuConsultarFitaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuConsultarFitaActionPerformed
        ConsultarFita fita = new ConsultarFita();
        fita.setVisible(true);
        this.dispose();

    }//GEN-LAST:event_MenuConsultarFitaActionPerformed

    private void MenuConsultarProducaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuConsultarProducaoActionPerformed
        ConsultarProducao producao = new ConsultarProducao();
        producao.setVisible(true);
        this.dispose();
    }//GEN-LAST:event_MenuConsultarProducaoActionPerformed

    private void MenuConsultarProdutorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuConsultarProdutorActionPerformed
        ConsultarProdutor produtor = new ConsultarProdutor();
        produtor.setVisible(true);
        this.dispose();
    }//GEN-LAST:event_MenuConsultarProdutorActionPerformed

    private void MenuConsultarTomadaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuConsultarTomadaActionPerformed
        ConsultarTomadaCena tomada = new ConsultarTomadaCena();
        tomada.setVisible(true);
        this.dispose();
    }//GEN-LAST:event_MenuConsultarTomadaActionPerformed

    private void MenuConsultarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MenuConsultarActionPerformed

        ConsultarAtor ator = new ConsultarAtor();
        ator.setVisible(true);
        this.dispose();


    }//GEN-LAST:event_MenuConsultarActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Menu().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu MenuAjuda;
    private javax.swing.JMenu MenuCadastrar;
    private javax.swing.JMenuItem MenuCadastrarAtor;
    private javax.swing.JMenuItem MenuCadastrarAutor;
    private javax.swing.JMenuItem MenuCadastrarCena;
    private javax.swing.JMenuItem MenuCadastrarFita;
    private javax.swing.JMenuItem MenuCadastrarLogin;
    private javax.swing.JMenuItem MenuCadastrarProducoes;
    private javax.swing.JMenuItem MenuCadastrarProdutor;
    private javax.swing.JMenuItem MenuCadastrarTomada;
    private javax.swing.JMenu MenuConsultar;
    private javax.swing.JMenuItem MenuConsultarAtor;
    private javax.swing.JMenuItem MenuConsultarAutor;
    private javax.swing.JMenuItem MenuConsultarCena;
    private javax.swing.JMenuItem MenuConsultarFita;
    private javax.swing.JMenuItem MenuConsultarProducao;
    private javax.swing.JMenuItem MenuConsultarProdutor;
    private javax.swing.JMenuItem MenuConsultarTomada;
    private javax.swing.JMenuItem MenuSobre;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JLabel lblMensagem;
    // End of variables declaration//GEN-END:variables

    public void inicializar(Usuario u) {
        this.setVisible(true);
        lblMensagem.setText(u.getLogin());


    }
}
